Settings ~/.vimrc



 These settings are commonly used to customize the behavior and appearance of the Vim text editor. They ensure consistent coding style, comfortable text navigation, and useful features during editing. Make sure to adapt these settings according to your preferences and the specific requirements of your projects.


set encoding=utf8          > Set encoding to UTF-8
set paste                  > Enable paste mode
set expandtab              > Use spaces instead of tabs for indentation
set textwidth=0            > Disable automatic text wrapping
set tabstop=4              > Number of spaces that a <Tab> in the file counts for
set softtabstop=4          > Number of spaces to use for each step of (auto)indent
set shiftwidth=4           > Number of spaces to use for (auto)indent
set smartindent            > Enable smart auto-indenting
set backspace=indent,eol,start  > Allow backspacing over autoindent, line breaks, and start of insert
set incsearch              > Incremental search
set ignorecase             > Ignore case when searching
set ruler                  > Show the line and column number of the cursor position
set wildmenu               > Display completion matches as a menu
set commentstring=\ #\ %s  > Set the comment string format
set clipboard+=unnamed     > Use the system clipboard

To Copy:

vim ~/.vimrc
Copy
set encoding=utf8
set paste
set expandtab
set textwidth=0
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smartindent
set backspace=indent,eol,start
set incsearch
set ignorecase
set ruler
set wildmenu
set commentstring=\ #\ %s
set clipboard+=unnamed

Comments

Popular posts from this blog

Installing the Certbot Let’s Encrypt Client for NGINX on Amazon Linux 2

psql: error: connection to server at "localhost" (127.0.0.1), port 5433 failed: ERROR: failed to authenticate with backend using SCRAM DETAIL: valid password not found

Deploy Nuxt.js app using Apache 2