Remapping a few things, especially the splits.

This commit is contained in:
Derek Taylor
2020-04-21 15:54:23 -05:00
parent dec4d62610
commit 813e7862ec

View File

@@ -57,10 +57,23 @@ filetype plugin indent on " required
" see :h vundle for more details or wiki for FAQ " see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line " 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 Keys
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Remap ESC to ii " Remap ESC to ii
:imap ii <Esc> :imap ii <Esc>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -74,28 +87,16 @@ let g:lightline = {
" Always show statusline " Always show statusline
set laststatus=2 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. " Uncomment to prevent non-normal modes showing in powerline and below powerline.
set noshowmode set noshowmode
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related " => Text, tab and indent related
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Use spaces instead of tabs set expandtab " Use spaces instead of tabs.
set expandtab set smarttab " Be smart using tabs ;)
set shiftwidth=4 " One tab == four spaces.
" Be smart when using tabs ;) set tabstop=4 " One tab == four spaces.
set smarttab
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => NERDTree " => NERDTree
@@ -157,9 +158,6 @@ highlight Function ctermfg=1 ctermbg=none cterm=none
" highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none " highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none
" highlight xmlEndTag 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 " => Vifm
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -198,12 +196,28 @@ set mouse=nicr
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set splitbelow splitright set splitbelow splitright
set path+=** " Searches current directory recursively. " Remap splits navigation to just CTRL + hjkl
set wildmenu " Display all matches when tab complete. nnoremap <C-h> <C-w>h
set incsearch nnoremap <C-j> <C-w>j
set nobackup nnoremap <C-k> <C-w>k
set noswapfile nnoremap <C-l> <C-w>l
" Make adjusing split sizes a bit more friendly
noremap <silent> <C-Left> :vertical resize +3<CR>
noremap <silent> <C-Right> :vertical resize -3<CR>
noremap <silent> <C-Up> :resize +3<CR>
noremap <silent> <C-Down> :resize -3<CR>
" Change 2 split windows from vert to horiz or horiz to vert
map <Leader>th <C-w>t<C-w>H
map <Leader>tk <C-w>t<C-w>K
" Removes pipes | that act as seperators on splits
set fillchars+=vert:\
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Other Stuff
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:python_highlight_all = 1 let g:python_highlight_all = 1
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org au! BufRead,BufWrite,BufWritePost,BufNewFile *.org