From 718b37578cca47c3bf25a6a4439f28322b4f46c9 Mon Sep 17 00:00:00 2001 From: ChristianChiarulli Date: Wed, 20 Feb 2019 12:24:54 -0500 Subject: added which key and remapped bindings --- modules/general.vim | 65 +++-------------------------------------------------- 1 file changed, 3 insertions(+), 62 deletions(-) (limited to 'modules/general.vim') diff --git a/modules/general.vim b/modules/general.vim index 6a6f9b0d..2b27b8fc 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -13,6 +13,7 @@ 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 pumheight=10 " Makes popup menu smaller set fileencoding=utf-8 " The encoding written to file set ruler " show the cursor position all the time set iskeyword+=- " treat dash separated words as a word text object" @@ -35,7 +36,8 @@ set background=dark " tell vim what the background color loo let g:python_highlight_all = 0 " Get rid of annoying red highlights" let g:elite_mode=1 " Disable arrows" - +filetype plugin indent on " Gives vim abilty to recognize filetypes + " Disable arrow movement, resize splits instead. if get(g:, 'elite_mode') nnoremap :resize -2 @@ -44,8 +46,6 @@ if get(g:, 'elite_mode') nnoremap :vertical resize +2 endif -" Gives vim abilty to recognize filetypes -filetype plugin indent on " Alternate way to save nnoremap :w " Alternate way to quit @@ -57,66 +57,7 @@ inoremap pumvisible() ? "\" : "\" " Open terminal with F1 nnoremap :10split term://bash nnoremap :bdelete! term://* -" insert mode for terminal -""autocmd BufWinEnter,WinEnter term://* startinsert -""autocmd BufLeave term://* stopinsert -" Toggle tagbar -"nnoremap :TagbarToggle -" Toggle Line numbers -"nnoremap :set nonumber! -" Toggle NERDTree -"nnoremap :NERDTreeToggle -" Startify -"nnoremap :Startify -" Get rid of highlights after search -"nnoremap :nohlsearch -" Toggle open buffers -" nnoremap :BuffergatorToggle -" For fuzzy finder -""nnoremap :Files -" F10 split vertical -"nnoremap :vsplit -" F11 split horizontal -"nnoremap :split -" Make current buffer only buffer -"nnoremap :only -" Remap window switch -" Switch to rename for LSP to do add leader -""nnoremap :SearchTasks * - -nnoremap q :q -nnoremap n :NERDTreeToggle -nnoremap m :TagbarToggle -nnoremap l :set nonumber! -nnoremap o :only -nnoremap s :Startify -nnoremap w :w -nnoremap p :pclose -nnoremap b :BuffergatorToggle -nnoremap ch :ColorToggle -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() -nnoremap fix :ALEFix -nnoremap gi :ALEInfo -" This is a funtion to open any file with (key sequence) - fun! OpenConfigFile(file) - if (&filetype ==? 'startify') - execute 'e ' . a:file - else - execute 'tabe ' . a:file - endif - endfun -nnoremap in :call OpenConfigFile('~/.config/nvim/init.vim') -nnoremap bashrc :call OpenConfigFile('~/.bashrc') -nnoremap code :call OpenConfigFile('~/Library/Application Support/Code/User/settings.json') nnoremap h nnoremap j -- cgit v1.2.3