So i found some helpful vim-hints on a page. Mostly stuff for .vimrc
I found out that i didn't have a .vimrc, so i made one, with this in it:
Code:
set nocompatible
syntax on
set pastetoggle=<F10>
set showmatch
set ignorecase
set incsearch
" autocomplete
function! CleverTab()
if strpart( getline('.'), 0, col('.')-1 ) =~ '^s*$'
return "<Tab>"
else
return "<C-N>"
endfunction
inoremap <Tab> <C-R>=CleverTab()<CR>
i am not sure how the pastegoogle is supposed to act, so i don't know if that's failing. I did notice that "syntax on" (highlighting) isn't working, at all, neither is the autocomplete-script at the bottom.
I write, for example, this:
Then this happens when i write $ni hit tab:
Another example:
some words with tab, this is what i get:
Code:
^u<C-N>
*y<C-N>
s<Tab>
- Does anyone know why the highlighting and the tabcomplete-script is failing?
EDIT:Whenever i press tab, i get "<C-N>". The text i found (in norwegian, or else i would have linked to it) said that i would be able to "tab" as normal..