"set background=dark set cindent set nowrap "set number set foldmethod=marker set encoding=utf-8 " For Netborder "set tabstop=2 "set softtabstop=2 "set shiftwidth=2 "set expandtab " " For FreeSWITCH set tabstop=4 set softtabstop=4 set shiftwidth=4 set paste syntax enable " enable omnicpp plugin set nocp filetype plugin on " search namespaces in the current buffer and in included files let OmniCpp_NamespaceSearch = 2 " this closes the preview Window of omnicppcomplete autocmd CursorMovedI * if pumvisible() == 0|pclose|endif autocmd InsertLeave * if pumvisible() == 0|pclose|endif set complete-=k complete+=k function InsertTabWrapper() let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\" else return "\" endif endfunction " Remap the tab key to select action with InsertTabWrapper inoremap =InsertTabWrapper() " CTRL + t open a new tab nnoremap :tabnew " CTRL + c closes the file nnoremap :wq " CTRL + x closes without saving the file nnoremap :q! " run ctags with ctrl + F12 nnoremap :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . "set spell spelllang=en let &titleold="bash" let &titlestring = expand("%:t") if &term == "screen" set t_ts=k set t_fs=\ endif if &term == "screen" || &term == "xterm" set title endif