Created
November 30, 2020 03:37
-
-
Save sandikodev/6fb20808e65ce6d819b48a0a750168f6 to your computer and use it in GitHub Desktop.
myvimrc1
This file contains hidden or 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
| "======[ r e a d m e f i r s t ]====== | |
| "check my keymap with :smap|xmap|nmap|amap|vmap / <C-w>/ | |
| " | |
| "mode-prefix(1) = ctrl+w ==> [command] | |
| "mode-prefix(2) = leader ==> [command] | |
| "mode-leader = \ | |
| "mode-emmet = ctrl+a ==> [command] | |
| "https://raw.githubusercontent.com/mattn/emmet-vim/master/TUTORIAL | |
| "list of avaliable cmd ==> :command! [cmd_parent] | |
| " | |
| "======[ passing init with try-catch ]====== | |
| try | |
| "put cursor ontop of uri | |
| "see me with mode-pref1 ==> f | |
| source ~/.vim/initRunner/addon.vim | |
| source ~/.vim/initRunner/kitaos.vim | |
| source ~/.vim/initRunner/keybind.vim | |
| source ~/.vim/initRunner/autostartup.vim | |
| source ~/.vim/initRunner/theme.vim | |
| source ~/.vim/initRunner/minimal.vim | |
| catch | |
| echoerr("ono konfig sek garai eror bos") | |
| endtry | |
| "======[c o n f i g u r a t i o n]====== | |
| let g:NERDTreeDirArrowExpandable = '||>' | |
| let g:NERDTreeDirArrowCollapsible = '|zz|' | |
| let g:slime_target = "tmux" | |
| let g:slime_paste_file = "$HOME/.slime_paste" | |
| let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": ":.2"} | |
| let g:ale_fixers = {} | |
| let g:ale_fixers['html'] = ['prettier'] | |
| "let g:airline#extensions#ale#enabled = 1 | |
| set linespace=3 | |
| let g:airline_powerline_fonts = 1 | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:rehash256 = 1 | |
| if executable('ag') | |
| let g:ackprg = 'ag --vimgrep' | |
| endif | |
| set conceallevel=2 | |
| let g:tex_conceal="abdgm" | |
| let g:gfm_syntax_enable_always = 1 | |
| let g:gfm_syntax_emoji_conceal = 1 | |
| let g:stat_limelight = 1 | |
| if executable('ccls') | |
| au User lsp_setup call lsp#register_server({ | |
| \ 'name': 'ccls', | |
| \ 'cmd': {server_info->['ccls']}, | |
| \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, | |
| \ 'initialization_options': {'cache': {'directory': '/tmp/ccls/cache' }}, | |
| \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc','ino'], | |
| \ }) | |
| endif | |
| nn <silent> <M-d> :LspDefinition<cr> | |
| nn <silent> <M-r> :LspReferences<cr> | |
| nn <f2> :LspRename<cr> | |
| nn <silent> <M-a> :LspWorkspaceSymbol<cr> | |
| nn <silent> <M-l> :LspDocumentSymbol<cr> | |
| 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 | |
| let g:syntastic_python_checkers = ['pylint'] | |
| let g:syntastic_tex_checkers = ['lacheck', 'text/language_check'] | |
| let g:clang_format#auto_format=1 | |
| let g:clang_format#style_options = { | |
| \ "AccessModifierOffset" : -4, | |
| \ "AllowShortIfStatementsOnASingleLine" : "true", | |
| \ "AlwaysBreakTemplateDeclarations" : "true", | |
| \ "Standard" : "C++11"} | |
| "let g:user_emmet_leader_key='<C-a>' | |
| autocmd ColorScheme * highlight link githubFlavoredMarkdownCode CursorLine | |
| autocmd! User GoyoEnter Limelight | |
| autocmd! User GoyoLeave Limelight! | |
| let g:limelight_conceal_ctermfg = 240 | |
| set nocompatible | |
| filetype off | |
| filetype plugin indent on | |
| filetype plugin on | |
| "call SetupPlatformioEnvironment('/home/dev/Documents/PlatformIO/Projects') | |
| "call SetupPlatformioEnvironment(expand('<sfile>:p')) | |
| set t_Co=256 | |
| syntax on | |
| "Usage | |
| "Vim Arduino Ino can be run using the following keys: | |
| "<Leader>pc - Clean the current sketch. | |
| "<Leader>pb - Build the current sketch. | |
| "<Leader>pu - Upload the current sketch. | |
| "<Leader>ps - Serial motitor | |
| "==========================[ a r d u i n o ]==========================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment