diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e750b1f..95b4988 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -57,10 +57,23 @@ filetype plugin indent on " required " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => General Settings +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +set path+=** " Searches current directory recursively. +set wildmenu " Display all matches when tab complete. +set incsearch " Incremental search +set nobackup " No auto backups +set noswapfile " No swap +set t_Co=256 " Set if term supports 256 colors. +set number relativenumber " Display line numbers +syntax enable +let g:rehash256 = 1 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Remap Keys """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -"Remap ESC to ii +" Remap ESC to ii :imap ii """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -74,28 +87,16 @@ let g:lightline = { " Always show statusline set laststatus=2 -" Use 256 colours (Use this setting only if your terminal supports 256 colours) -"set t_Co=256 - -syntax enable -set number relativenumber -let g:rehash256 = 1 - " Uncomment to prevent non-normal modes showing in powerline and below powerline. set noshowmode """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Text, tab and indent related """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Use spaces instead of tabs -set expandtab - -" Be smart when using tabs ;) -set smarttab - -" 1 tab == 4 spaces -set shiftwidth=4 -set tabstop=4 +set expandtab " Use spaces instead of tabs. +set smarttab " Be smart using tabs ;) +set shiftwidth=4 " One tab == four spaces. +set tabstop=4 " One tab == four spaces. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => NERDTree @@ -157,9 +158,6 @@ highlight Function ctermfg=1 ctermbg=none cterm=none " highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none " highlight xmlEndTag ctermfg=114 ctermbg=none cterm=none -" Removes pipes | that act as seperators on splits -set fillchars+=vert:\ - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Vifm """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -198,12 +196,28 @@ set mouse=nicr """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set splitbelow splitright -set path+=** " Searches current directory recursively. -set wildmenu " Display all matches when tab complete. -set incsearch -set nobackup -set noswapfile +" Remap splits navigation to just CTRL + hjkl +nnoremap h +nnoremap j +nnoremap k +nnoremap l +" Make adjusing split sizes a bit more friendly +noremap :vertical resize +3 +noremap :vertical resize -3 +noremap :resize +3 +noremap :resize -3 + +" Change 2 split windows from vert to horiz or horiz to vert +map th tH +map tk tK + +" Removes pipes | that act as seperators on splits +set fillchars+=vert:\ + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => Other Stuff +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:python_highlight_all = 1 au! BufRead,BufWrite,BufWritePost,BufNewFile *.org