Created
June 29, 2022 15:15
-
-
Save dragod812/2e6a6f79c901f41d4700a35389946add to your computer and use it in GitHub Desktop.
.vimrc
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
"__ ___ | |
"\ \ / (_)_ __ ___ | |
" \ \ /\ / /| | '_ ` _ \ | |
" \ V V / | | | | | | | | |
" \_/\_/ |_|_| |_| |_| | |
" | |
"""""""""" | |
"Encoding" | |
"""""""""" | |
set encoding=utf-8 | |
""""""""" | |
"Plugins" | |
""""""""" | |
" Run Below Curl command in a terminal to install vimplug. Works for vim on | |
" Unix Systems | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" Run :PlugInstall to install all the plugins. | |
" Run :coc-install <language-server> to install language autocomplete support | |
" More Info -> https://github.com/neoclide/coc.nvim/wiki/Language-servers | |
call plug#begin() | |
"""""""""""""" | |
"colorschemes" | |
"""""""""""""" | |
Plug 'https://github.com/morhetz/gruvbox.git' | |
Plug 'crusoexia/vim-monokai' | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'https://github.com/sainnhe/everforest.git' | |
""""""""""""""""""" | |
"Completion plugin" | |
""""""""""""""""""" | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
"Use CocInstall coc-tsserver coc-css coc-html coc-sh | |
"""""""""""""""""""" | |
"Beautify your code" | |
"""""""""""""""""""" | |
Plug 'maksimr/vim-jsbeautify' | |
""""""""""""""""""""""" | |
"Nerdtree File Manager" | |
""""""""""""""""""""""" | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
"""""""""""" | |
"Statusline" | |
"""""""""""" | |
"Plug 'itchyny/lightline.vim' | |
"""""""""""""""""""""" | |
"Make all text center" | |
"""""""""""""""""""""" | |
Plug 'junegunn/goyo.vim' | |
""""""""""""" | |
"Fish Syntax" | |
""""""""""""" | |
Plug 'https://github.com/khaveesh/vim-fish-syntax.git' | |
""""""""""""""""""""""""""""" | |
"Css colors showing in files" | |
""""""""""""""""""""""""""""" | |
Plug 'https://github.com/ap/vim-css-color.git' | |
""""""""""""""""""""""""""""""""""" | |
"Comment and uncomment text easily" | |
""""""""""""""""""""""""""""""""""" | |
Plug 'preservim/nerdcommenter' | |
""""""""""""""""""""""" | |
"Markdown live preview" | |
""""""""""""""""""""""" | |
Plug 'iamcco/markdown-preview.vim' | |
""""""""""""""""""""""""""""""""""""""""""""" | |
"HTML CSS JS Live preview in default browser" | |
""""""""""""""""""""""""""""""""""""""""""""" | |
Plug 'turbio/bracey.vim', {'do': 'npm install --prefix server'} | |
"""""""""""""""""""""""""" | |
"Fix Vim clipboardproblem" | |
"""""""""""""""""""""""""" | |
Plug 'christoomey/vim-system-copy' | |
"""""""""""""""""""""""""""""""""""""""""""" | |
"Syntax highlighting and icons for nerdtree" | |
"""""""""""""""""""""""""""""""""""""""""""" | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
"""""""""" | |
"surround" | |
"""""""""" | |
Plug 'https://github.com/tpope/vim-surround.git' | |
"This plugin has fuckedup Keybindings but its useful | |
" ysiw" surrounds one word with the " sign | |
" yss) surrounds entire line with ) | |
" yss<p> surrounds line with the <p> tag and auto completes the closing tag | |
" to surround multiple lines with a tag like a <li></li> use visual selection | |
" then press St and type the tag. Notice that the first < is already written | |
" so dont type it twice otherwise you'll get <<li> | |
"remember that its not about speed! vim doesnt care about how fast you input | |
"the combinations. We're not typing GTA cheats! | |
"""""""""""""" | |
"Fuzzy Search" | |
"""""""""""""" | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
"""""""""""""" | |
"Syntax Check" | |
"""""""""""""" | |
Plug 'https://github.com/vim-syntastic/syntastic.git' | |
""""""""""" | |
"Alignment" | |
""""""""""" | |
Plug 'https://github.com/godlygeek/tabular.git' | |
"use :TAB /[character] to align | |
"example :TAB /= alignes the = | |
"""""""""""""""""""""""""""""""" | |
"Search and open previous Files" | |
"""""""""""""""""""""""""""""""" | |
Plug 'https://github.com/yegappan/mru.git' | |
"""""""""""""""""""""""""""""""""""""""""""""""""" | |
"A menu that helps learnig the leader Keybindings" | |
"""""""""""""""""""""""""""""""""""""""""""""""""" | |
Plug 'liuchengxu/vim-which-key' | |
"press <leader>h to activate | |
""""""""""""""""""" | |
"Rainbow Bbrackets" | |
""""""""""""""""""" | |
Plug 'https://github.com/frazrepo/vim-rainbow.git' | |
"""""""""""""" | |
"Start Screen" | |
"""""""""""""" | |
Plug 'mhinz/vim-startify' | |
"""""""""""""""""""" | |
"Airlign status bar" | |
"""""""""""""""""""" | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'xolox/vim-notes' | |
Plug 'xolox/vim-notes' | |
Plug 'xolox/vim-misc' | |
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
call plug#end() | |
""""""""" | |
" Cursor " | |
"""""""""" | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
set mouse=a | |
""""""""""""" | |
" Clipboard " | |
""""""""""""" | |
set clipboard=unnamedplus | |
"Using the clipboard plugin c-p can be used to copy to system clipboard | |
"and c-v to paste from system clipboard(works in visual mode) - xsel is a dependency | |
"For modern terminals such as konsole-xfce-mate etc... Ctrl Shift V works as | |
"usual | |
" The default mapping is cp for copying and cv for pasting, and can be followed by any motion or text object. For instance: | |
" cpiw => copy word into system clipboard | |
" cpi' => copy inside single quotes to system clipboard | |
" cvi' => paste inside single quotes from system clipboard | |
" In addition, cP is mapped to copy the current line directly. | |
xmap y cp | |
" The sequence cV is mapped to paste the content of system clipboard to the next line. | |
"""""""""""""" | |
" Usual Things | |
"""""""""""""" | |
"For fold to be saved on exit | |
" augroup remember_folds | |
" autocmd! | |
" autocmd BufWinLeave * mkview | |
" autocmd BufWinEnter * silent! loadview | |
" augroup END | |
" Uncomment the following to have Vim jump to the last position when | |
" reopening a file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
endif | |
set autoread | |
set cmdheight=1 | |
set foldenable | |
set foldmethod=manual | |
set path+=** | |
set noswapfile | |
set autoindent | |
set ic | |
set incsearch | |
set smartcase | |
set lazyredraw | |
" set noshowmatch | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
syntax on | |
set relativenumber | |
set expandtab | |
set shiftwidth=4 | |
set tabstop=4 | |
" set backspace=eol,start,indent | |
filetype plugin indent on | |
"set cursorline | |
"set cursorcolumn | |
"set hlsearch | |
""""" | |
"RtL" | |
""""" | |
"for persian and arabic right to left support within vim, must have compatible terminal | |
"& bicon and harfbuzz etc installed | |
set termbidi | |
"""""""" | |
"Theme " | |
"""""""" | |
" Below statement is for everforest colors | |
" uncomment the ones with "" | |
" everforest theme takes a bit to generate the settings the first time | |
" Important!! | |
"" if has('termguicolors') | |
"" set termguicolors | |
"" endif | |
" For dark version. | |
set background=dark | |
" For light version. | |
"" set background=light | |
" Set contrast. | |
" This configuration option should be placed before `colorscheme everforest`. | |
" Available values: 'hard', 'medium'(default), 'soft' | |
"" let g:everforest_background = 'hard' | |
"" For better performance | |
"" let g:everforest_better_performance = 1 | |
""let g:everforest_enable_italic = 1 | |
"colorscheme everforest | |
"colorscheme gruvbox | |
"colorscheme dracula | |
colorscheme gruvbox | |
"""""""""""""""""""""""""" | |
"for lightline status bar" | |
"""""""""""""""""""""""""" | |
"set laststatus=2 | |
set noshowmode | |
"set statusline+=%F | |
"Available colors are: one solarized wombat papercolor everforest || Each has a dark and | |
"light version according to the set background option. || default is powerline | |
" let g:lightline = { | |
" \ 'colorscheme': 'wombat', | |
" \ 'active': { | |
" \ 'right': [ [ 'lineinfo' ], | |
" \ [ 'percent' ], | |
" \ [ 'fileformat', 'fileencoding', 'filetype', '' ] ] | |
" \ }, | |
" \ 'component': { | |
" \ 'charvaluehex': '0x%B' | |
" \ }, | |
" \ } | |
"""""""""""""""""""""""" | |
"for airline status bar" | |
"""""""""""""""""""""""" | |
let g:airline_powerline_fonts = 1 | |
let g:airline_extensions = [] | |
let g:airline_theme='base16' | |
"refer to https://github.com/vim-airline/vim-airline/wiki/Screenshots for | |
"colorschemes Screenshots | |
"""""""""""""""""""""""" | |
"Settings for syntastic" | |
"""""""""""""""""""""""" | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
""""""""""""""""""" | |
" Custom Mappings " | |
""""""""""""""""""" | |
"LEADER" | |
"leader key is space | |
let mapleader ="," | |
map <leader>z :Goyo <Cr> | |
map <leader>n :NERDTree <Cr> | |
map <leader>v :Vi <Cr> | |
map <leader>r :Ra <Cr> | |
map <leader>t :tabnew file <Cr> | |
map <F2> :Bracey <Cr> | |
map <F3> :BraceyReload <Cr> | |
map <F4> :BraceyStop <Cr> | |
map <leader>d :g/^\(.*\)$\n\1/d<Cr> | |
map <leader>m :MRU<Cr> | |
map <leader>h :WhichKey '<Space>'<Cr> | |
"-------------------------------------- | |
inoremap jj <esc> | |
nnoremap bs i#!/bin/bash<ESC>0 | |
nnoremap cn iconsole.log<ESC>0 | |
nmap <leader>w :w!<cr> | |
"nnoremap sh :!chmod +x % && source % | |
""""""""""""" | |
"Spell Check" | |
""""""""""""" | |
map <F6> :setlocal spell! spelllang=en_us<cr> | |
"--------------------------------------- | |
set wildmode=longest,list,full | |
"--------------------------------------- | |
"""""""""""""""""""""""""""""""""""""""" | |
"Keybindings for sane buffer navigation" | |
"""""""""""""""""""""""""""""""""""""""" | |
set splitbelow splitright | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
map <C-LEFT> <C-w>h | |
map <C-DOWN> <C-w>j | |
map <C-UP> <C-w>k | |
map <C-RIGHT> <C-w>l | |
map <s-LEFT> :vertical resize +5 <Cr> | |
map <s-RIGHT> :vertical resize -5 <Cr> | |
map <s-UP> :resize +5 <Cr> | |
map <s-DOWN> :resize -5 <Cr> | |
nnoremap <M-Left> :tabprevious<CR> | |
nnoremap <M-Right> :tabnext<CR> | |
"Keybindings for tab navigation with leader and number | |
noremap <leader>1 1gt | |
noremap <leader>2 2gt | |
noremap <leader>3 3gt | |
noremap <leader>4 4gt | |
noremap <leader>5 5gt | |
noremap <leader>6 6gt | |
noremap <leader>7 7gt | |
noremap <leader>8 8gt | |
noremap <leader>9 9gt | |
noremap <leader>0 :tablast<cr> | |
nnoremap <leader>x :tabclose<Cr> | |
map <leader>tm :tabmove<Cr> | |
map <leader>c :Colors<Cr> | |
map <leader>b :Buffers<Cr> | |
map <leader>f :Files<Cr> | |
map <leader>W :Windows<Cr> | |
map <leader>H :History<Cr> | |
map <leader>Hc :History:<Cr> | |
map <leader>M :Maps<Cr> | |
"""""""""""""""""""""""" | |
"Vim Easymotion mapping" | |
"""""""""""""""""""""""" | |
map <Leader> <Plug>(easymotion-prefix) | |
nmap s <Plug>(easymotion-s) | |
vmap s <plug>(easymotion-s) | |
nmap s <Plug>(easymotion-overwin-f) | |
nmap <Leader>s <Plug>(easymotion-overwin-f2) | |
map <Leader>w <Plug>(easymotion-bd-w) | |
nmap <Leader>w <Plug>(easymotion-overwin-w) | |
let g:EasyMotion_smartcase = 1 | |
"Vim-go setup" | |
let g:go_def_mode='godef' | |
"""""""""""""""""""""""""" | |
"Commands and filemanager" | |
"""""""""""""""""""""""""" | |
:command Ra !ranger | |
:command Vi !vifm | |
:command Na tabnew file | |
""""""""""""" | |
"HTML Indent" | |
""""""""""""" | |
:let g:html_indent_script1 = "inc" | |
:let g:html_indent_style1 = "inc" | |
:let g:html_indent_attribute = 1 | |
:let g:html_indent_inctags = "html,body,head,tbody" | |
"A skeleton can be pre-defined for any file with a fomat | |
"Below setting force vim to paste a basic html skeleton whenever | |
"vim is use to make a .html file. The skeleton.xml file must exist | |
"in the path specified below | |
augroup Xml | |
au BufNewFile *.html 0r ~/.vim/skeleton.xml | |
augroup end | |
"""""""""""" | |
"Comentator" | |
"""""""""""" | |
"leader cc to comnment and leader cu to uncomment | |
""""""""""" | |
"NERDTree " | |
""""""""""" | |
" Start NERDTree and leave the cursor in it. | |
" autocmd VimEnter * NERDTree | |
"start nerdtree and put cursor in empty buffer or file | |
autocmd VimEnter * NERDTree | wincmd p | |
" Start NERDTree when Vim is started without file arguments. | |
" below 2 lines were commented for startify to work | |
"" autocmd StdinReadPre * let s:std_in=1 | |
"" autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif | |
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree. | |
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | | |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif | |
" Exit Vim if NERDTree is the only window remaining in the only tab. | |
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | |
let g:NERDTreeWinSize=20 | |
"disable 80 extentions of nerdtree for less lag | |
let g:NERDTreeLimitedSyntax = 1 | |
" Create default mappings | |
let g:NERDCreateDefaultMappings = 1 | |
" Add spaces after comment delimiters by default | |
let g:NERDSpaceDelims = 1 | |
" Use compact syntax for prettified multi-line comments | |
let g:NERDCompactSexyComs = 1 | |
" Align line-wise comment delimiters flush left instead of following code indentation | |
let g:NERDDefaultAlign = 'left' | |
" Set a language to use its alternate delimiters by default | |
let g:NERDAltDelims_java = 1 | |
" Add your own custom formats or override the defaults | |
let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } | |
" Allow commenting and inverting empty lines (useful when commenting a region) | |
let g:NERDCommentEmptyLines = 1 | |
" Enable trimming of trailing whitespace when uncommenting | |
let g:NERDTrimTrailingWhitespace = 1 | |
" Enable NERDCommenterToggle to check all selected lines is commented or not | |
let g:NERDToggleCheckAllLines = 1 | |
""""""""""""""""""""""""""""""""" | |
" NERDTree Functions and colors " | |
""""""""""""""""""""""""""""""""" | |
let g:NERDTreeDirArrowExpandable = '' | |
let g:NERDTreeDirArrowCollapsible = '' | |
let g:NERDTreeHighlightFolders = 1 " enables folder icon highlighting using exact match | |
let g:NERDTreeHighlightFoldersFullName = 1 " highlights the folder name | |
" you can add these colors to your .vimrc to help customizing | |
let s:brown = "905532" | |
let s:aqua = "3AFFDB" | |
let s:blue = "689FB6" | |
let s:darkBlue = "44788E" | |
let s:purple = "834F79" | |
let s:lightPurple = "834F79" | |
let s:red = "AE403F" | |
let s:beige = "F5C06F" | |
let s:yellow = "F09F17" | |
let s:orange = "D4843E" | |
let s:darkOrange = "F16529" | |
let s:pink = "CB6F6F" | |
let s:salmon = "EE6E73" | |
let s:green = "8FAA54" | |
let s:lightGreen = "31B53E" | |
let s:white = "FFFFFF" | |
let s:rspec_red = 'FE405F' | |
let s:git_orange = 'F54D27' | |
let g:NERDTreeExtensionHighlightColor = {} " this line is needed to avoid error | |
let g:NERDTreeExtensionHighlightColor['css'] = s:blue " sets the color of css files to blue | |
let g:NERDTreeExactMatchHighlightColor = {} " this line is needed to avoid error | |
let g:NERDTreeExactMatchHighlightColor['.gitignore'] = s:git_orange " sets the color for .gitignore files | |
let g:NERDTreePatternMatchHighlightColor = {} " this line is needed to avoid error | |
let g:NERDTreePatternMatchHighlightColor['.*_spec\.rb$'] = s:rspec_red " sets the color for files ending with _spec.rb | |
let g:WebDevIconsDefaultFolderSymbolColor = s:beige " sets the color for folders that did not match any rule | |
let g:WebDevIconsDefaultFileSymbolColor = s:blue " sets the color for files that did not match any rule | |
""""""""""""""""""" | |
"Beatify Web Files" | |
""""""""""""""""""" | |
map <c-f> :call JsBeautify()<cr> | |
" or | |
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr> | |
" for json | |
autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr> | |
" for jsx | |
autocmd FileType jsx noremap <buffer> <c-f> :call JsxBeautify()<cr> | |
" for html | |
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr> | |
" for css or scss | |
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr> | |
"""""""""""""""""""""" | |
"HTML CSS Live Server" | |
"""""""""""""""""""""" | |
let g:mkdp_path_to_chrome = "" | |
" Path to the chrome or the command to open chrome (or other modern browsers). | |
" If set, g:mkdp_browserfunc would be ignored. | |
let g:mkdp_browserfunc = 'MKDP_browserfunc_default' | |
" Callback Vim function to open browser, the only parameter is the url to open. | |
let g:mkdp_auto_start = 0 | |
" Set to 1, Vim will open the preview window on entering the Markdown | |
" buffer. | |
let g:mkdp_auto_open = 0 | |
" Set to 1, Vim will automatically open the preview window when you edit a | |
" Markdown file. | |
let g:mkdp_auto_close = 1 | |
" Set to 1, Vim will automatically close the current preview window when | |
" switching from one Markdown buffer to another. | |
let g:mkdp_refresh_slow = 0 | |
" Set to 1, Vim will just refresh Markdown when saving the buffer or | |
" leaving from insert mode. With default 0, it will automatically refresh | |
" Markdown as you edit or move the cursor. | |
let g:mkdp_command_for_global = 0 | |
" Set to 1, the MarkdownPreview command can be used for all files, | |
" by default it can only be used in Markdown files. | |
let g:mkdp_open_to_the_world = 0 | |
" Set to 1, the preview server will be available to others in your network. | |
" By default, the server only listens on localhost (127.0.0.1). | |
"""""""""""""""""""""" | |
"Markdown Live Server" | |
"""""""""""""""""""""" | |
" for normal mode | |
nmap <silent> <F8> <Plug>MarkdownPreview | |
" for insert mode | |
imap <silent> <F8> <Plug>MarkdownPreview | |
" for normal mode | |
nmap <silent> <F9> <Plug>StopMarkdownPreview | |
" for insert mode | |
imap <silent> <F9> <Plug>StopMarkdownPreview | |
""""""""""""""""""""""""" | |
"HTML CSS JS Live Server" | |
""""""""""""""""""""""""" | |
" bracey won't do anything until it is explicitly called | |
" | |
" :Bracey | |
" this starts the bracey server and optionally opens your default web browser to bracey's address. if you have an html file open as your current buffer, it will be displayed and you may begin editing it live. | |
" | |
" :BraceyStop | |
" will shutdown the server and stop sending commands | |
" | |
" :BraceyReload | |
" force the current web page to be reloaded | |
" | |
" :BraceyEval [args] | |
" let g:which_key_map = {'n' : 'NERDTree Toggle' , 'r' : 'Ranger' , 'v' : 'Vifm' , 't' : 'Open New Tab' } | |
""""""""""""""""""""""""""""""""" | |
"Dictionary Setting For WhichKey" | |
""""""""""""""""""""""""""""""""" | |
let g:which_key_map = { | |
\ 'z' : ['Goyo' , 'Goyo'] , | |
\ 'n' : ['NERDTree' , 'NERDTree Toggle'] , | |
\ 'v' : ['Vifm' , 'Vifm'] , | |
\ 'r' : ['Ranger' , 'Ranger'] , | |
\ 't' : ['tabnew' , 'Open New Tab'] , | |
\ 'd' : ['Duplicate Cleaner' , 'Delete Duplicate Lines'] , | |
\ 'm' : ['MRU' , 'View File History'] , | |
\ 'h' : ['This Menu' , 'This Menu'] , | |
\ 'cc' : ['Comment Out' , 'Comment Out'] , | |
\ 'cu' : ['Uncomment' , 'Uncomment'] , | |
\ '1-9' : ['Go To Tab By Number' , 'Go To Tab By Number 0 Is Tab 10'] , | |
\ 'F8' : ['Open MD Server' , 'MD Server'] , | |
\ 'F2' : ['Web Server' , 'Web Server'] , | |
\ 'F3' : ['Web Server' , 'Web Server Reload'] , | |
\ 'F4' : ['Web Server' , 'Web Server Stop'] , | |
\ 'F6' : ['Spellcheck' , 'Spellcheck'] , | |
\ 'C-vimkeys/arrows' : ['Move Between Splits' , 'Move Between Splits'] , | |
\ 'S-arrows' : ['Resize Splits' , 'Resize Splits'] , | |
\ 'Alt-arrows' : ['Tab Right Or Left' , 'Tab Right OR Left'] , | |
\ 'c' : ['Colors' , 'Colors'] , | |
\ 'b' : ['Buffers' , 'Buffers'] , | |
\ 's' : ['Easymotion' , 'EasyMotion two characters'] , | |
\ 'f' : ['Files' , 'Files'] , | |
\ 'W' : ['Windows' , 'Windows'] , | |
\ 'H' : ['History' , 'History'] , | |
\ 'Hc' : ['CMD History' , 'CMD History'] , | |
\ 'M' : ['Maps' , 'Maps'] , | |
\ 'C-f' : ['Beautify' , 'Brautify'] , | |
\ 'w' : ['Quick Save' , 'Quick Save'] , | |
\ 'tm' : ['TabMove' , 'TaBMove'] , | |
\ } | |
let g:which_key_map.1 = 'which_key_ignore' | |
let g:which_key_map.2 = 'which_key_ignore' | |
let g:which_key_map.3 = 'which_key_ignore' | |
let g:which_key_map.4 = 'which_key_ignore' | |
let g:which_key_map.5 = 'which_key_ignore' | |
let g:which_key_map.6 = 'which_key_ignore' | |
let g:which_key_map.7 = 'which_key_ignore' | |
let g:which_key_map.8 = 'which_key_ignore' | |
let g:which_key_map.9 = 'which_key_ignore' | |
let g:which_key_map.0 = 'which_key_ignore' | |
call which_key#register('<,>', "g:which_key_map") | |
""""""""""""""""""""""""""""""" | |
"Options For The Startify Menu" | |
""""""""""""""""""""""""""""""" | |
let g:startify_custom_header = | |
\ startify#pad(split(system('figlet -w 100 Wim'), '\n')) | |
"Incase you are insane and want to open a new tab with Goyo enabled | |
autocmd BufEnter * | |
\ if !exists('t:startify_new_tab') && empty(expand('%')) && !exists('t:goyo_master') | | |
\ let t:startify_new_tab = 1 | | |
\ Startify | | |
\ endif | |
"Bookmarks. Syntax is clear.add yours | |
let g:startify_bookmarks = [ {'I': '~/i3/i3/config'},{'L': '~/.blerc'},{'Z': '~/.zshrc'},{'B': '~/.bashrc'},{'V': '~/.vimrc'}] | |
let g:startify_lists = [ | |
\ { 'type': 'bookmarks', 'header': [' Bookmarks'] }, | |
\ { 'type': 'files', 'header': [' Recent'] }, | |
\ { 'type': 'sessions', 'header': [' Sessions'] }, | |
\ { 'type': 'commands', 'header': [' Commands'] }, | |
\ ] | |
"cant tell wtf it does so its commented | |
" \ { 'type': 'dir', 'header': [' MRU '. getcwd()] }, | |
hi StartifyBracket ctermfg=240 | |
hi StartifyFile ctermfg=147 | |
hi StartifyFooter ctermfg=240 | |
hi StartifyHeader ctermfg=114 | |
hi StartifyNumber ctermfg=215 | |
hi StartifyPath ctermfg=245 | |
hi StartifySlash ctermfg=240 | |
hi StartifySpecial ctermfg=240 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment