Sunday, October 31, 2021

Manjaro linux: syntax/source highlighing/coloring in vim/bash terminal

if you are a text tool user like me, syntax coloring or source code highlighting can be helpful.


# 1. use GUI add/remove software to install 2 packages:


    syntax-highlighting

    source-highlight


# 2. edit  ~/.bashrc  and add below  

# (if other linux distro, use other path of src-hilite-lesspipe.sh)


export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"

export LESS=" -R "

alias less='less -m -N -g -i -J --underline-special --SILENT'


# 3. edit  ~/.vimrc  and add


if &t_Co > 2 || has("gui_running")

    syntax on

    set hlsearch

endif



* * * 

# to test

open a terminal


$ ls 

$ less test.cpp

$ less test.py

$ vim test.py




Labels: , , ,

Sunday, October 03, 2021

Manjaro 安裝 中文輸入法 倉頡

Tuesday, December 24, 2019

trying Manjaro linux


December 24, 2019 

Manjaro new release today, time to try it.


It's a *rolling* distribution that not require re-installation every time a new version released.


single command to upgrade to the latest:


$ sudo pacman -Syu


# S - Sync

# y - refresh

# u - upgrade

Labels: , ,