"""Vim-Plug""""""""""""""""""""""""""""""""""""""" call plug#begin() Plug 'scrooloose/nerdtree' Plug 'tpope/vim-commentary' Plug 'morhetz/gruvbox' Plug 'ervandew/supertab' Plug 'itchyny/lightline.vim' Plug '~/.fzf' Plug 'junegunn/fzf.vim' " Plug 'w0rp/ale' call plug#end() """Setting""""""""""""""""""""""""""""""""""""""" " set timeoutlen=1000 ttimeoutlen=0 "VIM ONLY --No delay switching modes-- "--Sessions-- " autocmd! VimLeave * mksession " autocmd! VimEnter * source ~/Session.vim "--Folding-- " autocmd BufWinLeave *.* mkview " autocmd BufWinEnter *.* silent loadview" " set foldmethod=syntax "syntax highlighting items specify folds *SLOW " set foldcolumn=1 "defines 1 col at window left, to indicate folding " let javaScript_fold=1 "activate folding by JS syntax " set foldlevelstart=99 "start file with all folds opened "--Others-- " set signcolumn=yes " set nu rnu " set nu set noshowmode set laststatus=2 set noswapfile filetype plugin indent on set number relativenumber autocmd InsertEnter,InsertLeave * set cul! "Insert Cursor Highlingting" set termguicolors set background=light set showcmd " Show (partial) command in status line. set showmatch " Show matching brackets. set ignorecase " Do case insensitive matching set smartcase " Do smart case matching set incsearch " Incremental search (highlight during search) set autowrite " Automatically save before commands like :next and :make set hidden " Hide buffers when they are abandoned set mouse=a " Enable mouse usage (all modes) set nohlsearch set splitright set splitbelow "--Cursors-- let &t_SI = "\[5 q" let &t_SR = "\[4 q" let &t_EI = "\[2 q" "--Indentation-- set shiftwidth=4 set tabstop=4 set list "Indent Guide" set listchars=tab:›\ ,trail:•,extends:#,nbsp:. """MAPPINGS"""""""""""""""""""""""""""""""""""""""" "To use `ALT+{h,j,k,l}` to navigate windows from any mode: " tnoremap h " tnoremap j " tnoremap k " tnoremap l " inoremap h " inoremap j " inoremap k " inoremap l " nnoremap h " nnoremap j " nnoremap k " nnoremap l "map space to leader nnoremap let mapleader = "\" noremap h :set hlsearch! hlsearch? inoremap jk "session map :mks! map :source ~/Session.vim "scrolling nnoremap } nnoremap { "line navigation nnoremap B ^ nnoremap E $ "---windows management---------- map :q! map :w map :vnew map :new "switch between windows nnoremap w inoremap w tnoremap w "move windows nnoremap H nnoremap J nnoremap K nnoremap L tnoremap H tnoremap J tnoremap K tnoremap L inoremap H inoremap J inoremap K inoremap L "moving cursor insert mode inoremap ha inoremap ja inoremap ka inoremap la "resize windows nnoremap :vertical resize -5 nnoremap :res -2 nnoremap :res +2 nnoremap :vertical resize +5 tnoremap :vertical resize -5 tnoremap :res -2 tnoremap :res +2 tnoremap :vertical resize +5 "---plugins mapping---------- "nerdTree map :NERDTreeToggle "fzf map :Files map :Buffers map :History map :Lines map :Marks "--SuperTab-- let g:SuperTabDefaultCompletionType = "" "--ALE-- " nmap (ale_previous_wrap) " nmap (ale_next_wrap) """"PLUGINS SETTING"""""""""""""""""""""""""""""""""""""""" "gruvbox let g:gruvbox_invert_selection=0 let g:gruvbox_italic = '1' let g:gruvbox_contrast_dark = 'medium' let g:gruvbox_contrast_light = 'soft' colorscheme gruvbox "lightline let g:lightline = { \ 'colorscheme': 'gruvbox', \ } """""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""NVIM"""""""""""""""""""""""""""""""""""""" set clipboard=unnamedplus "--Mapping-- tnoremap jk "--Terminal " map t :vsplit term://fish " map y :split term://fish map :terminal