Back


Vi


Contents


   vim-mariana

   How to mark 80-characters column limit in Vi?

All standard color schemes: ls /usr/share/vim/vim81/colors

Docs

Official page https://vim.fandom.com/wiki/Vim_Tips_Wiki">Vim Tips Wiki https://vimhelp.org/vim_faq.txt.html">VIM FAQ Help pages for: man vim vimtutor :help colorcolumn

:highlight in syntax.txt

If you type vim --version you'll see the path that vim uses to load your configuration. Крутые уроки по работе с Vi https://habr.com/ru/articles/307084/ https://pragprog.com/search/?q=p Color converter https://github.com/NTBBloodbath/color-converter.nvim Хороший плагин для Vim https://github.com/amadeus/vim-convert-color-to Color Table in Vim https://github.com/guns/xterm-color-table.vim INSPIRED BY: Использованные материалы: https://stackoverflow.com/questions/6230490/how-i-can-change-cursor-color-in-vims-color-scheme https://vim.fandom.com/wiki/Configuring_the_cursor https://vim.fandom.com/wiki/Xterm256_color_names_for_console_Vim https://vim.fandom.com/wiki/256_colors_in_vim https://www.vim.org/scripts/script.php?script_id=3412 https://github.com/guns/xterm-color-table.vim https://phoenixnap.com/kb/vim-color-schemes All standard color schemes: ls /usr/share/vim/vim81/colors All syntax: ls /usr/share/vim/vim81/syntax https://alvinalexander.com/linux/vi-vim-editor-color-scheme-syntax/ https://vimdoc.sourceforge.net/htmldoc/syntax.html https://codeyarns.com/tech/2015-03-18-how-to-check-colors-supported-by-terminal.html https://github.com/jaxbot/semantic-highlight.vim

Color Schemes

https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg

Installation

  1. Download monokai color scheme:
        https://github.com/ku1ik/vim-monokai
  2. Put monokai.vim file in your ~/.vim/colors/ directory
        unzip vim-monokai-master.zip
    
        cd vim-monokai-master
    
        mv colors ~/.vim
  3. and add the following line to your ~/.vimrc:
        vi ~/.vimrc
    
        syntax enable        " eneble colorscheme monokai
        set background=dark
        colorscheme monokai
  4. Save and exit:
        wq

Plugins

file managers

Vaffle - 📁 Lightweight, window-based file manager for Vim File explorer https://www.reddit.com/r/vim/comments/j13210/minimal_file_explorer_for_vim/ https://stackoverflow.com/questions/8343166/filemanager-for-vim Tabs https://www.linux.com/training-tutorials/vim-tips-using-tabs/ https://habr.com/ru/articles/102373/ https://www.reddit.com/r/vim/comments/9h043h/how_do_you_guys_work_with_tabs/ https://www.reddit.com/r/vim/comments/195kckh/good_plugin_for_managing_tabs_in_vim/ https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs/26710166#26710166 https://stackoverflow.com/questions/102384/using-vims-tabs-like-buffers https://superuser.com/questions/410982/in-vim-how-can-i-quickly-switch-between-tabs FAQs How do I change my Vim highlight line? set cursorline hi CursorLine term=bold cterm=bold guibg=Grey40 highlight lineNr term=bold cterm=NONE ctermbg=none ctermfg=none gui=bold highlight CursorLine term=bold cterm=NONE ctermbg=none ctermfg=none gui=bold highlight CursorLineNr term=bold cterm=none ctermbg=none ctermfg=yellow gui=bold " Styling line numbers on the left from Sublime Text 3 set cursorline highlight lineNr term=none cterm=none ctermbg=235 ctermfg=242 gui=none highlight CursorLineNr term=none cterm=none ctermbg=237 ctermfg=102 gui=none highlight CursorLine term=none cterm=none ctermbg=none ctermfg=none gui=none If you want to turn the underline on use either one of: :set cursorline :hi CursorLine cterm=underline gui=underline Otherwise use one of those: :hi CursorLine cterm=none gui=none how to change text color and background color for line number on the left side?
    highlight LineNr ctermfg=grey ctermbg=white guibg=white guifg=grey
    
    ctermbg for command-line vim
    guibg for graphical vim (gvim, macvim, etc), respectively

    ctermfg, guifg - text color
    ctermfg, guibg - background color

!Note that if you're using a GUI version of vim, .gvimrc color settings get applied second and can clobber the ones in .vimrc

How to display line number in Vi? Turn on line numbering: :set number Turn off line numbering: :set nonumber Turn on relative line numbers by typing: :set relativenumber What color scheme is installed in Vi? :colorscheme How to change the color scheme? :colorscheme morning All standard color schemes: ls /usr/share/vim/vim81/colors How to enable black and white default theme? :colorscheme default If it doesn't work, open the file: vi /etc/vim/vimrc find and comment out the lines: " if has("syntax") " syntax on " endif Save and exit: wq And open the file: vi ~/.vimrc find and comment out the line: " syntax on Save and exit: wq How to reload .vimrc file without restarting vim on Linux/Unix? :so % or :so ~/.vimrc

^ Back to top



Back Modified , email