diff --git a/vim/dot_vimrc b/vim/dot_vimrc index 9035abd..31b672d 100644 --- a/vim/dot_vimrc +++ b/vim/dot_vimrc @@ -1,3 +1,6 @@ +"Allow arrow keys +set nocompatible + "tab functionality "tabs inserted as 4 spaces "backspace deletes all spaces @@ -9,11 +12,24 @@ set softtabstop=4 set autoindent filetype indent on +set virtualedit=onemore " allow for cursor beyond last character +set scrolljump=5 " lines to scroll when cursor leaves screen +set scrolloff=3 " minimum lines to keep above and below cursor + +"Enable search highlighting +set hls + +"Highlights the line the cursor is on +set cursorline + "enable line numbers set nu -"fixes arrow keys -set nocompatible +"Toggle Line numbers with Ctrl+N double tap +nmap :set invnumber + +"Toggle line wrap with Ctrl+L double tap +nmap :set wrap! "Allows filetype detection filetype on @@ -25,12 +41,14 @@ filetype on "map j_ "map k_ "set wmh=0 + +"Move between splits using Ctrl+hjkl map k map j map l map h -"Class List +"CTags List nnoremap :TlistToggle let Tlist_Exit_OnlyWindow=1 let Tlist_Winwidth=30 @@ -38,8 +56,23 @@ let Tlist_Winwidth=30 "Syntax Hightlighting syntax on -"Toggle Line numbers with Ctrl+N double tap -nmap :set invnumber - "Remap jk to esc inoremap jk + +"Remap Ctrl+Space for auto Complete +inoremap +inoremap + +" Stupid shift key fixes +cmap W w +cmap WQ wq +cmap wQ wq +cmap Q q + +"clearing highlighted search +nmap / :nohlsearch + +" Change Working Directory to that of the current file +cmap cwd lcd %:p:h +cmap cd. lcd %:p:h +