Created
January 22, 2021 07:35
-
-
Save ilukashin/88c6a69312d365f7c56b6c056aa719aa to your computer and use it in GitHub Desktop.
vim settings
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
| set langmenu=en_US.UTF-8 | |
| :let $LANG = 'en' | |
| set encoding=utf-8 | |
| set nocompatible | |
| """""" | |
| "UI View | |
| """""" | |
| syntax on | |
| set showcmd " Show (partial) command in status line. | |
| set showmatch " Show matching brackets. | |
| set number " Show line numbers | |
| set hidden " Hide buffers when they are abandoned | |
| set ruler " Show cursor position | |
| set cursorline | |
| set laststatus=2 | |
| set noshowmode " Show current mode | |
| """""" | |
| "Indents | |
| """""" | |
| set autoindent " New lines inherit the indentation of previous lines | |
| set expandtab " replace tabs with spaces | |
| set tabstop=2 shiftwidth=2 " 1 tab = 2 spaces | |
| " when deleting whitespace at the beginning of a line, delete | |
| " 1 tab worth of spaces (for us this is 2 spaces) | |
| set smarttab | |
| """""" | |
| "Search | |
| """""" | |
| set incsearch " Incremental search | |
| set ignorecase " Do case insensitive matching | |
| set smartcase " Do smart case matching | |
| set hlsearch " text highliting | |
| """""" | |
| "Other | |
| """""" | |
| set autowrite " Automatically save before commands like :next and :make | |
| set confirm " Confirmation at close unsaved files | |
| "set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')} | |
| """"""""""""""""""""""""""""""""""""""""""" | |
| " " " " " " " P L U G I N S " " " " " " " " | |
| """"""""""""""""""""""""""""""""""""""""""" | |
| " " " vim-plug source " " " | |
| so ~/.vim/plugins.vim | |
| " " " plugins settings " " " | |
| "autocmd vimenter * NERDTree | |
| nnoremap <leader>n :NERDTreeFocus<CR> | |
| nnoremap <C-n> :NERDTree<CR> | |
| nnoremap <C-t> :NERDTreeToggle<CR> | |
| "nnoremap <C-f> :NERDTreeFind<CR> | |
| let g:airline_powerline_fonts = 1 "Включить поддержку Powerline шрифтов | |
| let g:airline#extensions#keymap#enabled = 0 "Не показывать текущий маппинг | |
| let g:airline_section_z = "\ue0a1:%l/%L Col:%c" "Кастомная графа положения курсора | |
| let g:Powerline_symbols='unicode' "Поддержка unicode | |
| " | |
| "let g:airline#extensions#xkblayout#enabled = 0 "Про это позже расскажу |
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
| # yeah, i need this to remember :D | |
| # https://vim.rtorr.com | |
| ### Moves | |
| hjkl - arrows | |
| ctrl + u/d - up/down | |
| ctrl + b/f - page up/down | |
| 0 - start line | |
| $ - end line | |
| w - next word | |
| e - next end word | |
| b - previos word | |
| ### Edit | |
| r - replace 1 symbol | |
| R - replace multiple symbols | |
| o/O - ineset line down/up | |
| ### Search | |
| /<word> | |
| n - next | |
| N - previos | |
| *uncomplete | |
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
| call plug#begin('~/.vim/plugged') | |
| Plug 'junegunn/fzf' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'mattn/emmet-vim' | |
| Plug 'vim-ruby/vim-ruby' | |
| Plug 'tpope/vim-surround' | |
| Plug 'tpope/vim-rails' | |
| Plug 'airblade/vim-gitgutter' | |
| call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment