filetype plugin on call plug#begin('~/.vim/plugged') Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels Plug 'voldikss/vim-floaterm' " Terminal window Plug 'frazrepo/vim-rainbow' " Rainbow brackets Plug 'airblade/vim-gitgutter' " Git indicator Plug 'ap/vim-css-color' " CSS color preview Plug 'mhinz/vim-startify' " Start page Plug 'itchyny/lightline.vim' " Status line Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim " Color sheme Plug 'Smirnov-O/nten16.vim' " Project/file nafigation Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} Plug 'ryanoasis/vim-devicons', {'on': 'NERDTreeToggle'} Plug 'preservim/tagbar', {'on': 'TagbarToggle'} Plug 'kien/ctrlp.vim', {'on': 'CtrlP'} Plug 'easymotion/vim-easymotion' " Completion Plug 'jiangmiao/auto-pairs' Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language support Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'} Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'} Plug 'plasticboy/vim-markdown', {'for': 'markdown'} Plug 'vim-python/python-syntax', {'for': 'python'} Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'} Plug 'mattn/emmet-vim', {'on': 'Emmet'} Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'} call plug#end() " Colors set termguicolors set background=dark colorscheme nten16 set t_Co=256 " Syntax & line numbars syntax on set number set relativenumber " Vim status line set noshowmode set ruler set showmode set showcmd " Mouse set mouse=a set mousehide set cursorline " File encoding set encoding=utf-8 set fileencodings=utf8 " Line wrap set nowrap set nolinebreak " Backup files & history set nobackup set noswapfile set history=100 " Auto reload file set autoread " Tabs set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set autoindent " Search set incsearch set ignorecase set smartcase " Buffer set hidden set smartindent " Disable sound set visualbell t_vb= " == Plugins configure " Lightline let g:lightline = { \ 'colorscheme': 'nten16', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], \ [ 'readonly', 'modified' ] ], \ 'right': [ [ 'lineinfo' ], \ [ 'percent' ], \ [ 'filename', 'fileencoding', 'filetype' ] ] \ }, } " Nerdtree let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git'] let g:NERDTreeWinPos = "right" let g:NERDTreeWinSize = 28 let NERDTreeMinimalUI = 1 let NERDTreeShowLineNumbers = 1 let NERDTreeShowHidden = 0 map :NERDTreeToggle " VimWiki let g:vimwiki_markdown_link_ext = 0 let g:vimwiki_list = [{ \ 'path': '~/Documents/Notes', \ 'syntax': 'markdown', \ 'ext': '.md', \ }] " Coc inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" " Markdown let g:vim_markdown_folding_disabled = 1 " Easymotion let g:EasyMotion_do_mapping = 0 let g:EasyMotion_smartcase = 1 nmap f (easymotion-s) nmap FF (easymotion-overwin-line) nmap FD (easymotion-overwin-f2) nmap FS (easymotion-bd-w) " CtrlP let g:ctrlp_custom_ignore = '\v[\/]\.git$' imap :CtrlP nmap :CtrlP " Indent guides let g:indent_guides_enable_on_vim_startup = 1 " Python let g:python_highlight_all = 1 " Startify let g:startify_custom_header = [ \ " _____ _____ _ ", \ " | | |___ ___| | |_|_____ ", \ " | | | | -_| . | | | | | ", \ " |_|___|___|___|\___/|_|_|_|_| ", \ ] let g:startify_lists = [ \ { 'type': 'bookmarks', 'header': ["  Bookmarks"] }, \ { 'type': 'files', 'header': ["  Files"] }, \ ] " Rainbow let g:rainbow_active = 1 " TagBar imap :TagbarToggle nmap :TagbarToggle let g:tagbar_autoclose = 1 let g:tagbar_width = 18 let g:tagbar_left = 1 " Floaterm let g:floaterm_title = "VimTermianl" let g:floaterm_wintype = "floating" let g:floaterm_position = "center" let g:floaterm_height = 0.7 let g:floaterm_width = 0.6 let g:floaterm_autoclose = 2 nmap :FloatermNew " == Maping let mapleader="," " Window(s) nmap :wincmd h nmap :wincmd j nmap :wincmd k nmap :wincmd l nmap :wincmd q nmap :wincmd n nmap :wincmd K nmap :wincmd L nmap :wincmd < nmap :wincmd > " Tab(s) noremap :tabnext noremap :tabprev noremap :tabnew noremap :tabnew noremap :tabclose noremap :tabn 1 noremap :tabn 2 noremap :tabn 3 noremap :tabn 4 noremap :tabn 5 noremap :tabn 6 noremap :tabn 7 noremap :tabn 8 noremap :tabn 9 " Buffer(s) noremap p :bnext noremap o :bprev " Autostart "autocmd VimEnter * execute "source ~/.config/nvim/init.vim"