From fa1be111d1224f9dad7c4c94ff3ab30f64894023 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Sat, 16 Feb 2019 11:44:35 -0500 Subject: added new features goyo, sneak --- modules/general.vim | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'modules/general.vim') diff --git a/modules/general.vim b/modules/general.vim index 0752298d..786152d2 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -10,6 +10,7 @@ nmap \ xmap \ syntax enable " Enables syntax highlighing +set hidden " Required for specific actions that require multiple buffers set nowrap " display long lines as just one line set encoding=utf-8 " The encoding displayed set fileencoding=utf-8 " The encoding written to file @@ -58,25 +59,25 @@ nnoremap :10split term://bash autocmd BufWinEnter,WinEnter term://* startinsert autocmd BufLeave term://* stopinsert " Toggle tagbar -nnoremap :TagbarToggle +"nnoremap :TagbarToggle " Toggle Line numbers -nnoremap :set nonumber! +"nnoremap :set nonumber! " Toggle NERDTree -nnoremap :NERDTreeToggle +"nnoremap :NERDTreeToggle " Startify -nnoremap :Startify +"nnoremap :Startify " Get rid of highlights after search -nnoremap :nohlsearch +"nnoremap :nohlsearch " Toggle open buffers -nnoremap :BuffergatorToggle +" nnoremap :BuffergatorToggle " For fuzzy finder ""nnoremap :Files " F10 split vertical -nnoremap :vsplit +"nnoremap :vsplit " F11 split horizontal -nnoremap :split +"nnoremap :split " Make current buffer only buffer -nnoremap :only +"nnoremap :only " Remap window switch " Switch to rename for LSP to do add leader ""nnoremap :SearchTasks * @@ -84,12 +85,22 @@ nnoremap :only nnoremap n :NERDTreeToggle nnoremap m :TagbarToggle nnoremap l :set nonumber! +nnoremap o :only nnoremap s :Startify nnoremap w :w -nnoremap b : nnoremap p :pclose +nnoremap bu :BuffergatorToggle +nnoremap gy :Goyo +nnoremap hi :nohlsearch +nnoremap hs :split +nnoremap vs :vsplit +nnoremap gh :call LanguageClient_textDocument_hover() +nnoremap gd :call LanguageClient_textDocument_definition() +nnoremap gr :call LanguageClient_textDocument_rename() +nnoremap gc :call LanguageClient_contextMenu() +nnoremap fr :call LanguageClient_textDocument_references() -" Split edit your vimrc. Type space, v, r in sequence to trigger +" This is a funtion to open any file with (key sequence) fun! OpenConfigFile(file) if (&filetype ==? 'startify') execute 'e ' . a:file @@ -98,6 +109,7 @@ nnoremap p :pclose endif endfun nnoremap in :call OpenConfigFile('~/.config/nvim/init.vim') +nnoremap bashrc :call OpenConfigFile('~/.bashrc') nnoremap h nnoremap j -- cgit v1.2.3