This commit is contained in:
simonec 2010-11-12 11:59:42 +00:00
parent 1f1f60bb74
commit ab8bf6501a
2 changed files with 16 additions and 11 deletions

View File

@ -34,3 +34,8 @@ colorscheme freya
" Emacs like indenting. Pressing Tab indents line
set indentkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
set cinkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
" User customizations are held in file ~/.vim/gvimrc.local
if filereadable($HOME."/.vim/gvimrc.local")
source $HOME/.vim/gvimrc.local
endif

View File

@ -69,9 +69,10 @@ colorscheme wombat256
" """""""""
" User Info
" """""""""
let g:shortname = 'andre'
let g:fullname = 'Andrea Mistrali'
let g:email = 'am@am.cx'
" PLEASE DEFINE THESE IN vimrc.local
" let g:shortname = 'login'
" let g:fullname = 'Full Name'
" let g:email = 'email address'
" """""""""""""""""""""""""
" COMPLETION & INDENTATION
@ -79,12 +80,12 @@ let g:email = 'am@am.cx'
" Function that returns tab if called on an "empty" line
" C-N elsewhere
function! CleverTab()
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
return "\<Tab>"
else
return "\<C-N>"
endfunction
" function! CleverTab()
" if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
" return "\<Tab>"
" else
" return "\<C-N>"
" endfunction
" map the function to Tab
" inoremap <C-\> <C-R>=CleverTab()<CR>
set completeopt=longest
@ -131,8 +132,7 @@ let NERDCreateDefaultMappings=1
" """""""""""
" Keymappings
" """""""""""
let mapleader = "\\"
"let mapleader = ","
let g:mapleader = ","
nnoremap <silent> <Leader>l :set list!<CR>
nnoremap <silent> <Leader>f :set fullscreen!<CR>
nnoremap <silent> <Leader>x :set paste!<CR>