-
-
Save CATboardBETA/51faf10f2b7efe028383a4226eb70011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin("~/.vim/plugged") | |
" Plugin Section | |
Plug 'dracula/vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'leafgarland/typescript-vim' | |
Plug 'peitalin/vim-jsx-typescript' | |
Plug 'itchyny/lightline.vim' | |
Plug 'sstallion/vim-wtf' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'chriskempson/base16-vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'enricobacis/vim-airline-clock' | |
call plug#end() | |
"Config Section | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
syntax enable | |
set nu | |
let g:NERDTreeShowHidden = 1 | |
let g:NERDTreeMinimalUI = 1 | |
let g:NERDTreeIgnore = [] | |
let g:NERDTreeStatusline = '' | |
let $FZF_DEFAULT_COMMAND = 'ag -g ""' | |
" Automaticaly close nvim if NERDTree is only thing left open | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" Toggle | |
nnoremap <silent> <C-b> :NERDTreeToggle<CR> | |
" open new split panes to right and below | |
set splitright | |
set splitbelow | |
" turn terminal to normal mode with escape | |
tnoremap <Esc> <C-\><C-n> | |
" start terminal in insert mode | |
au BufEnter * if &buftype == 'terminal' | :startinsert | endif | |
" open terminal on ctrl+n | |
function! OpenTerminal() | |
split term://bash | |
resize 10 | |
endfunction | |
nnoremap <c-n> :call OpenTerminal()<CR> | |
" use alt+hjkl to move between split/vsplit panels | |
tnoremap <A-h> <C-\><C-n><C-w>h | |
tnoremap <A-j> <C-\><C-n><C-w>j | |
tnoremap <A-k> <C-\><C-n><C-w>k | |
tnoremap <A-l> <C-\><C-n><C-w>l | |
nnoremap <A-h> <C-w>h | |
nnoremap <A-j> <C-w>j | |
nnoremap <A-k> <C-w>k | |
nnoremap <A-l> <C-w>l | |
nnoremap <C-s> :w<Return> | |
snoremap <C-s> <Esc>:w<Return>v<C-o> | |
xnoremap <C-s> <Esc>:w<Return>v | |
inoremap <C-s> <Esc>:w<Return>i | |
nnoremap <C-S-s> :wa^M | |
snoremap <C-S-s> <Esc>:wa<Return>v<C-o> | |
xnoremap <C-S-s> <Esc>:wa<Return>v | |
inoremap <C-S-s> <Esc>:wa<Return>i | |
noremap <C-q> :q | |
inoremap <C-S-q> :qa | |
nnoremap <C-p> :FZF<CR> | |
let g:fzf_action = { | |
\ 'ctrl-t': 'tab split', | |
\ 'ctrl-s': 'split', | |
\ 'ctrl-v': 'vsplit' | |
\} | |
syntax on | |
set t_Co=256 | |
set cursorline | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#coc#enabled = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_right_alt_sep = '' | |
let g:airline_right_sep = '' | |
let g:airline_left_alt_sep= '' | |
let g:airline_left_sep = '' | |
let g:airline#extensions#tabline#left_sep = '' | |
let g:airline#extensions#tabline#left_alt_sep = '' | |
let g:airline_theme='base16-default-dark' | |
colorscheme wtf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment