You are not logged in.
Pages: 1
I'm using Arch Linux with XFCE and would like to configure Vim for development purposes. I couldn’t find a .vimrc file, though I did find .viminfo. I’m looking to install useful plugins and set up Vim properly for development. Could someone please guide me through the process of successfully configuring it?
Offline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
I understand that Vim’s user-specific configuration is typically located in
~/.vimrc, and user Vim files reside in
~/.vim/. Global configurations are in
/etc/vimrc, and files like
defaults.vimand archlinux.vim are found in /usr/share/vim/.
However, I don’t see the
~/.vimrcfile or the ~/.vim/ directory in my home folder. On the other hand, the global files do exist. When I checked
/etc/vimrc, I noticed the following lines:
" do not load defaults if ~/.vimrc is missing
"let skip_defaults_vim=1 Given this, should I manually create my own ~/.vimrc file and ~/.vim/ directory if I want to customize Vim for my user?
Last edited by bala451987 (2025-06-02 03:35:36)
Offline
Given this, should I manually create my own ~/.vimrc file and ~/.vim/ directory if I want to customize Vim for my user?
Yes.
For example my ~/.vimrc
$ cat .vimrc
~~~~~~~~~~~~~~~~
filetype plugin on
filetype indent on
syntax enable
set number
set noswapfile
set hlsearch
set ignorecase
set incsearch
set background=dark
colorscheme sorbet... and my ~/.vim/ folder only has a single folder called "colors" which contains
ls ~/.vim/colors/
~~~~~~~~~~~~~~~~
elflord.vim koehler.vim modest.vim solarized.vim sorbet.vim test.vim torte.vimCheers,
Last edited by dakota (2025-06-02 03:49:36)
"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb
Offline
But i don't find either .vim .vimrc at the home folder. So should i create one or to edit the file with in /etc/vimrc.
Last edited by bala451987 (2025-06-02 03:56:12)
Offline
Create the ~/.vimrc from scratch in your home folder. Don't change the one in /etc/ - this should be a user level configuration, not a global one.
Offline
Yes created and given the above text within it and now my next question is, how can i add plugins for example any plugins like tree-view and s on.
Offline
By reading the wiki: https://wiki.archlinux.org/title/Vim#Plugins
https://slash7.com/2006/12/22/vampires/
Vim is extensively documented ( https://www.vim.org/docs.php ) and there's also https://vim.fandom.com/wiki/Vim_Tips_Wiki but the learning curve for the editor is steep.
If your plan is to ask a question for every step on the road ("ok, now how do I exit vim?"), the only usable feasible is to use sth. like nano or mcedit as console text editor.
Offline
Thanks Seth. Understand. I am beginner. I have some basic comments how to use vim. But i think in the aspects of configuration could be careful.
Offline
Pages: 1