diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/airline.vim | 4 | ||||
-rw-r--r-- | modules/ctrlp.vim | 2 | ||||
-rw-r--r-- | modules/deoplete.vim | 5 | ||||
-rw-r--r-- | modules/general.vim | 86 | ||||
-rw-r--r-- | modules/gutentags.vim | 1 | ||||
-rw-r--r-- | modules/nerdtree.vim | 1 | ||||
-rw-r--r-- | modules/plugins.vim | 22 | ||||
-rw-r--r-- | modules/pythonpath.vim | 1 | ||||
-rw-r--r-- | modules/startify.vim | 6 |
9 files changed, 122 insertions, 6 deletions
diff --git a/modules/airline.vim b/modules/airline.vim index 0cebfd61..bf99c2eb 100644 --- a/modules/airline.vim +++ b/modules/airline.vim @@ -4,3 +4,7 @@ let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 " Switch to your current theme let g:airline_theme = 'tender' +" Always show tabs +set showtabline=2 +" We don't need to see things like -- INSERT -- anymore +set noshowmode diff --git a/modules/ctrlp.vim b/modules/ctrlp.vim new file mode 100644 index 00000000..5d52cf01 --- /dev/null +++ b/modules/ctrlp.vim @@ -0,0 +1,2 @@ +let g:ctrlp_map = '<c-p>' +let g:ctrlp_cmd = 'CtrlP' diff --git a/modules/deoplete.vim b/modules/deoplete.vim index 3189451c..1774fa66 100644 --- a/modules/deoplete.vim +++ b/modules/deoplete.vim @@ -1,3 +1,4 @@ -let g:python3_host_prog = '~/Miniconda/envs/neovim/bin/python3.7' +" Enable deoplete let g:deoplete#enable_at_startup = 1 -let g:python3_host_prog = '~/Miniconda/envs/neovim/bin/python3.7' +" <TAB>: completion. +inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" diff --git a/modules/general.vim b/modules/general.vim index 23f7a85b..baf4cdaa 100644 --- a/modules/general.vim +++ b/modules/general.vim @@ -2,10 +2,90 @@ if &compatible set nocompatible endif - " Gives vim abilty to recognize filetypes filetype plugin indent on " Enables syntax highlighing syntax enable - -let g:python3_host_prog = '~/Miniconda/envs/neovim/bin/python3.7' +" display long lines as just one line +set nowrap +" The encoding displayed +set encoding=utf-8 +" The encoding written to file +set fileencoding=utf-8 +" Enable your mouse +set mouse=a +" Horizontal splits will automatically be below +set splitbelow +" Vertical splits will automatically be to the right +set splitright +" Support 256 colors +set t_Co=256 +" Your working directory will always be the same as your working directory +set autochdir +" Insert 4 spaces for a tab +set tabstop=4 +" Change the number of space characters inserted for indentation +set shiftwidth=4 +" Makes tabbing smarter will realize you have 2 vs 4 +set smarttab +" Converts tabs to spaces +set expandtab +" Makes indenting smart +set smartindent +" Good auto indent +set autoindent +" Always display the status line +set laststatus=2 +" Line numbers +set number +" Enable highlighting of the current line +set cursorline +let g:elite_mode=1 +" Disable arrow movement, resize splits instead. +if get(g:, 'elite_mode') + nnoremap <Up> :resize -2<CR> + nnoremap <Down> :resize +2<CR> + nnoremap <Left> :vertical resize -2<CR> + nnoremap <Right> :vertical resize +2<CR> +endif +" Alternate way to save +nnoremap <C-s> :w<CR> +" Alternate way to quit +nnoremap <C-Q> :wq!<CR> +" Use control-c instead of escape +nnoremap <C-c> <Esc> +" <TAB>: completion. +inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" +" F2 split vertical +nnoremap <F2> :vsplit<CR> +" F3 split horizontal +nnoremap <F3> :split<CR> +" Toggle Line numbers +nnoremap <F4> :set nonumber!<CR> +" Toggle NERDTree +nnoremap <F5> :NERDTreeToggle<CR> +" Get rid of highlights after search +nnoremap <silent> <F7> :nohlsearch<CR><F7> +" Open terminal with F1 +nnoremap <F1> :10split term://bash<CR> +" insert mode for terminal +autocmd BufWinEnter,WinEnter term://* startinsert +autocmd BufLeave term://* stopinsert +" Remap window switch +nnoremap <C-h> <C-w>h +nnoremap <C-j> <C-w>j +nnoremap <C-k> <C-w>k +nnoremap <C-l> <C-w>l +" Remap terminal switch +tnoremap <C-[> <C-\><C-n> +tnoremap <C-c><Esc> <Esc> +tnoremap <C-h> <C-\><C-n><C-w>h +tnoremap <C-j> <C-\><C-n><C-w>j +tnoremap <C-k> <C-\><C-n><C-w>k +tnoremap <C-l> <C-\><C-n><C-w>l +" TAB in general mode will mov to text buffer +nnoremap <TAB> :bnext<CR> +" SHIFT-TAB will go back +nnoremap <S-TAB> :bprevious<CR> +" Map leader switch to whatever you want +let mapleader = "," diff --git a/modules/gutentags.vim b/modules/gutentags.vim new file mode 100644 index 00000000..87ee153d --- /dev/null +++ b/modules/gutentags.vim @@ -0,0 +1 @@ +set nofsync diff --git a/modules/nerdtree.vim b/modules/nerdtree.vim new file mode 100644 index 00000000..e0ba7ea0 --- /dev/null +++ b/modules/nerdtree.vim @@ -0,0 +1 @@ +let NERDTreeShowHidden = 1 diff --git a/modules/plugins.vim b/modules/plugins.vim index 3f55a38c..299e169f 100644 --- a/modules/plugins.vim +++ b/modules/plugins.vim @@ -14,6 +14,27 @@ if dein#load_state('~/.config/nvim/dein') " powerline call dein#add('vim-airline/vim-airline') call dein#add('vim-airline/vim-airline-themes') + " File manager + call dein#add('scrooloose/NERDTree') + " Start Screen + call dein#add('mhinz/vim-startify') + " For ctags + call dein#add('ludovicchabant/vim-gutentags') + " Tagbar + call dein#add('majutsushi/tagbar') + " Auto Pairs + call dein#add('jiangmiao/auto-pairs') + " Buffergator use \b + call dein#add('jeetsukumaran/vim-buffergator') + " Ctrlp + call dein#add('ctrlpvim/ctrlp.vim') + "Syntax + call dein#add('w0rp/ale') + "Git + call dein#add('airblade/vim-gitgutter') + call dein#add('tpope/vim-fugitive') + " BufOnly use :BufOnly to unload all or pass it a single buffer + call dein#add('vim-scripts/BufOnly.vim') call dein#add('~/.config/nvim/dein/repos/github.com/Shougo/dein.vim') call dein#add('Shougo/deoplete.nvim') @@ -26,7 +47,6 @@ if dein#load_state('~/.config/nvim/dein') call dein#save_state() endif - " If you want to install not installed plugins on startup. if dein#check_install() call dein#install() diff --git a/modules/pythonpath.vim b/modules/pythonpath.vim new file mode 100644 index 00000000..b0607962 --- /dev/null +++ b/modules/pythonpath.vim @@ -0,0 +1 @@ +let g:python3_host_prog = expand('~/Miniconda/envs/neovim/bin/python3.7') diff --git a/modules/startify.vim b/modules/startify.vim new file mode 100644 index 00000000..46731681 --- /dev/null +++ b/modules/startify.vim @@ -0,0 +1,6 @@ +let g:startify_custom_header = [ + \ ' _ __ _ ', + \ ' / | / /__ ____ _ __(_)___ ___ ', + \ ' / |/ / _ \/ __ \ | / / / __ `__ \', + \ ' / /| / __/ /_/ / |/ / / / / / / /', + \ ' /_/ |_/\___/\____/|___/_/_/ /_/ /_/ '] |